/**
 *
 */
package com.mmlc.network.filter;

import com.androidnetframe.BaseParentActivity;
import com.androidnetframe.httputil.BaseRequestFilterLayer;
import com.androidnetframe.httputil.EntryPageName;
import com.mmlc.meimei.lichengkongjian.been.RefundDetailBean;
import com.mmlc.network.requestbean.RefundDetailRequestBean;
import com.mmlc.network.responsebean.RefundDetailResponseBean;

/**
 * @author 何强
 *         2015-12-18
 * @修改 张园汀 2015-12-30
 */
public class RefundDetailRequestFilter extends BaseRequestFilterLayer {
    public RefundDetailRequestBean requestBean = new RefundDetailRequestBean();

    public RefundDetailRequestFilter(BaseParentActivity context) {
        super(context);
        requestBean.method = "refundDetail";
        makeRequestParams.entryPageName = EntryPageName.n5_a + "";
        makeRequestParams.setReqeustBean(requestBean, true);
    }
    public RefundDetailBean responseBean;
    @Override
    public void getResultSuccess(String responseString, Object obj) {
        responseBean = new RefundDetailBean();


        RefundDetailResponseBean res = (RefundDetailResponseBean) obj;

        RefundDetailResponseBean.DataBean data = res.getData();

        if(data == null){
            return;
        }

        responseBean.money = data.getOrder_price();
        responseBean.returnMoney = data.getRefund_price();
        responseBean.refundReason = data.getRefund_reason();
        responseBean.applyTime = data.getAdd_time();
        responseBean.refundState = data.getStatus_msg();
        responseBean.refundStateDesc = data.getRefund_remark();

    }
}
